package org.lc.design.samples.case1.factory.impl;

import org.lc.design.samples.case1.factory.ElectronicFactory;
import org.lc.design.samples.case1.product.Laptop;
import org.lc.design.samples.case1.product.Phone;
import org.lc.design.samples.case1.product.Tablet;
import org.lc.design.samples.case1.product.impl.MatePad;
import org.lc.design.samples.case1.product.impl.MatePhone;
import org.lc.design.samples.case1.product.impl.MateBook;

/**
* 具体电子产品工厂：华为
* @author lc
* @date 2024/3/26
*/
public class HUAWEIFactory implements ElectronicFactory {

    @Override
    public Laptop createLaptop() {
        return new MateBook();
    }

    @Override
    public Phone createPhone() {
        return new MatePhone();
    }

    @Override
    public Tablet createTablet() {
        return new MatePad();
    }
}
